<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function Student(name, sex, age) {
            //对象的属性
            this.name = name;
            this.sex = sex;
            this.age = age;
            this.sa = function () {
                console.log("我的名字是:"+this.name+","+"我的性别是:"+this.sex+","+"我的年龄是:"+this.age);
            }
        }
        var s1 = new Student("zs", 1, 28);
        var s2 = new Student("ls", "男", 333);
        s1.sa();
        s2.sa();
    </script>
</head>
<body>

</body>
</html>